{{>header}}

  <div class="post det">
    <form action="/edit/{{post.id}}" method="post">
        标题：<br/>
        <input value="{{ post.title }}" name="title" type="text" /><br>

        标签：<br>
        {{#each post.tags}}
        <input type="checkbox" name="tag-{{this.name}}" value="{{this.name}}"{{#if this.checked}} checked{{/if}}/>{{this.name}}&nbsp;
        {{/each}}
        <br>

        正文：<br/>
        <textarea name="content" cols="50" rows="10">{{ post.content }}</textarea><br/>
        <input type="hidden" name="id" value="{{ post.id }}"/>
        <input type="submit" value="提交"/>
    </form>
  </div>

{{>footer}}